package jmine.tec.web.front.domain;

/**
 * @author lundberg
 */
public class BackOfficeRequestPropertyBigDecimalBuilder extends BackOfficeRequestPropertyBuilder<BackOfficeRequestPropertyBigDecimal> {

    private Integer decimals = 2;

    public static BackOfficeRequestPropertyBigDecimalBuilder aBigDecimalProperty() {
        return new BackOfficeRequestPropertyBigDecimalBuilder();
    }

    @Override
    protected BackOfficeRequestPropertyBigDecimal doBuild() {
        BackOfficeRequestPropertyBigDecimal result = super.doBuild();
        result.setDecimals(this.decimals);
        return result;
    }

    public BackOfficeRequestPropertyBigDecimalBuilder decimals(Integer value) {
        this.decimals = value;
        return this;
    }
}
